import request from '../../../utils/request'

function gerUser(params) {
  return request({
    url: '/user/getPage',
    method: 'get',
    params
  })
}
function gerUserList(params) {
  return request({
    url: '/user/getList',
    method: 'get',
    params
  })
}

function addUser(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

function editUser(data) {
  return request({
    url: '/user',
    method: 'put',
    data
  })
}

function freezeUser(data) {
  return request({
    url: '/user',
    method: 'delete',
    data
  })
}

export { gerUser, addUser, editUser, freezeUser ,gerUserList}
